package com.rla.service;

import com.rla.domain.vo.BaseStoredValueRulesVo;
import com.rla.domain.bo.BaseStoredValueRulesBo;
import com.rla.common.core.page.TableDataInfo;
import com.rla.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 储值规则Service接口
 *
 * @author rla
 * @date 2025-09-09
 */
public interface IBaseStoredValueRulesService {

    /**
     * 查询储值规则
     */
    BaseStoredValueRulesVo queryById(Long ID);

    /**
     * 查询储值规则列表
     */
    TableDataInfo<BaseStoredValueRulesVo> queryPageList(BaseStoredValueRulesBo bo, PageQuery pageQuery);

    /**
     * 查询储值规则列表
     */
    List<BaseStoredValueRulesVo> queryList(BaseStoredValueRulesBo bo);

    /**
     * 新增储值规则
     */
    Boolean insertByBo(BaseStoredValueRulesBo bo);

    /**
     * 修改储值规则
     */
    Boolean updateByBo(BaseStoredValueRulesBo bo);

    /**
     * 校验并批量删除储值规则信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
